// 店铺相关操作
import request,{Method} from '@/plugins/api.js'

// 获取卖家店铺详情
export function getStoreDetail(storeId){
  return request({
      url : `/store/storeinfo/getStoreDetail/${storeId}`,
      method: Method.GET,
  })
}

// 申请店铺第一步填写公司信息
export function applyFirst (params) {
    return request({
      url: '/store/storedetail/applyFirst',
      method: Method.POST,
      data: params
    });
}

// 申请店铺第二部填写银行信息
export function applySecond (params) {
  return request({
    url: '/store/storedetail/applySecond',
    method: Method.POST,
    data: params
  });
}

// 申请店铺第三步-完善其他信息
export function applyThird (params) {
  return request({
    url: '/store/storedetail/applyThird',
    method: Method.POST,
    data: params
  });
}

// 检查该用户是否申请过店铺
export function checkUserStoreExists(memberId){
  return request({
      url : `/store/storeinfo/checkUserStoreExists/${memberId}`,
      method: Method.GET,
  })
}